<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="pragma" content="no-cache">  <!-- HTTP 1.1 -->
    <meta http-equiv="cache-control" content="no-cache,must-revalidate">  <!-- HTTP 1.0 -->
    <meta name="renderer" content="webkit|ie-comp|ie-stand"/> <!--优先级：极速模式，兼容模式，IE模式-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <title>扬州房产测绘业务管理系统</title>
    <link rel="stylesheet" type="text/css" href="../../../libs/jeasyui-181/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../../../libs/jeasyui-181/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="../../../libs/jeasyui-181/themes/color.css">
    <link rel="stylesheet" type="text/css" href="../../../css/common.css">
    <script type="text/javascript" src="../../../libs/jeasyui-181/jquery.min.js"></script>
    <script type="text/javascript" src="../../../libs/jeasyui-181/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../../../libs/thUtil.js"></script>
    <script src="../../../libs/viewUtil.js"></script>
    <style>
        .content {
            padding: 10px;
        }

        .index {
            margin-bottom: 10px;
            color: #949DAD;
        }

        .box {
            position: relative;
            overflow: hidden;
            height: 600px;
        }
    </style>
</head>
<body>
<div class="container-wrap">
    <div id="toolbar">
        <div class="container-tit">
            <h1>业务办理</h1>
        </div>
        <div class="content">
            <h5 class="index">目前操作功能：窗口收件</h5>
            <!--<div id="tabs"></div>-->
            <div id="tabs" class="easyui-tabs">
                <div id="base" title="基本信息" style="padding:20px;display:none;">
                    <iframe class='box' src=''></iframe>
                </div>
                <div id="house" title="房屋幢信息" style="padding:20px;display:none;">
                    <iframe class='box' src=''></iframe>
                </div>
                <div id="order" title="收件清单" style="padding:20px;display:none;">
                    <iframe class='box' src=''></iframe>
                </div>
                <div id="print" title="并案打印" style="padding:20px;display:none;">
                    <iframe class='box' src=''></iframe>
                </div>
                <div id="receipt" title="回执单" style="padding:20px;display:none;">
                    <iframe class='box' src=''></iframe>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script>
    $(function () {
        //首次进入
        ajax.setSrc();
        //监听选择
        $("#tabs").tabs({
            onSelect: function (title, index) {
                ajax.setSrc();
            }
        });
    });
    var ajax = {
        setSrc:function (url) {
            var tab = $('#tabs').tabs('getSelected');
            var tbId = tab.attr("id");
            var tbIframe = $("#"+tbId+" iframe:first-child");
            tbIframe.attr('src', tbId+'.html?todoId='+ajax.getHrefKey("todoId"));
        },
        /**
         * @return {null}
         */
        getHrefKey: function (name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
            var r = window.location.search.substr(1).match(reg);
            if (r !== null) {
                return (r[2]);
            } else {
                return null;
            }
        }
    }
</script>
</html>